﻿using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Polaris.Domain.Model.DtoWebSite.Comments.Response
{
    public class CommentsInfoResponse
    {
        public string Id { get; set; }

        /// <summary>
        /// 回复的上级id
        /// </summary>
        public string? ParentId { get; set; }

        /// <summary>
        /// 回复的id
        /// </summary>
        public Guid? ReplyId { get; set; }

        /// <summary>
        /// 外键id 例如文章id
        /// </summary>
        public string? TypeId { get; set; }

        /// <summary>
        /// 用户名称
        /// </summary>
        public string UserName { get; set; }

        /// <summary>
        /// 回复的人
        /// </summary>
        public string? ReplyName { get; set; }

        /// <summary>
        /// 用户邮箱
        /// </summary>
        public string UserEmail { get; set; }

        /// <summary>
        /// 用户网址
        /// </summary>
        public string? WebSite { get; set; }

        /// <summary>
        /// 评论内容
        /// </summary>
        public string? Content { get; set; }

        /// <summary>
        /// 评论时间
        /// </summary>
        public string CreateTime { get; set; }

        /// <summary>
        /// 评论审核
        /// </summary>
        public bool? Examine { get; set; }

        /// <summary>
        /// IP地址
        /// </summary>
        public string? IPAddress { get; set; }

        /// <summary>
        /// 评论者位置信息
        /// </summary>
        public string? Position { get; set; }

        /// <summary>
        /// 评论者设备信息
        /// </summary>
        public string? DeviceInfo { get; set; }

        /// <summary>
        /// 评论者浏览器（不精准）
        /// </summary>
        public string? Browser { get; set; }

        /// <summary>
        /// 是否匿名
        /// </summary>
        public bool? Anonymous { get; set; }

        /// <summary>
        /// 头像
        /// </summary>
        public string? Head { get; set; }

        /// <summary>
        /// 子集
        /// </summary>
        public List<CommentsInfoResponse>? Children { get; set; }
    }
}
